package com.demo.dune.base;

import java.util.ArrayList;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

/**
 * ListResultVO.
 * @author Allen
 * @version 1.0 2022-04-04
 */
@Getter
@Setter
public class ListResultVO<T> extends ResultVO {

	private static final long serialVersionUID = 7608735437568342947L;

	private List<T> data;
	
	public ListResultVO() {}

	public ListResultVO(List<T> list) {
		super.setSuccessResult();
		this.data = list;
	}
	
	public ListResultVO(ResultCodeEnum resultCodeEnum) {
		super(resultCodeEnum);
		this.data = new ArrayList<T>();
	}
	
	public ListResultVO(String errorCode, String errorMsg) {
		super(errorCode, errorMsg);
		this.data = new ArrayList<T>();
	}
	
}
